package cn.dnui_cr503.dnuifood_16110100503.service;

import java.util.List;

import cn.dnui_cr503.dnuifood_16110100503.bean.CollectStatus;
import cn.dnui_cr503.dnuifood_16110100503.bean.FoodBean;
import cn.dnui_cr503.dnuifood_16110100503.bean.Shop;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by chengrui on 2018/10/31.
 */

public interface ShopService {
    @GET("getAllShops.do")
    Call<List<Shop>> getAllShops();

    @GET("getShopById.do")
    Call<List<FoodBean>> getShopById(@Query("shop_id") int shop_id);

    @GET("isCollected.do")
    Call<CollectStatus> isCollected(@Query("user_id") int user_id, @Query("shop_food_id") int shop_food_id, @Query("flag") int flag);

}
